import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import installVantComponent from "./middleware/installVantComponent";
import installCustomComponent from "./middleware/installCustomComponent";
import installCustomDiretive from './middleware/installCustomDiretive'
import installCustomFilter from './middleware/installCustomFilter'
import installAxios from "./middleware/installAxios";
import "lib-flexible";

import "@/assets/scss/reset.scss";
import "vant/lib/index.css";

Vue.config.productionTip = false;

Vue.use(installVantComponent)    //加载vant组件
  .use(installCustomComponent)   //加载自定义组件n
  .use(installAxios)         //初始化axios
  .use(installCustomDiretive)        //加载自定义指令
  .use(installCustomFilter)        //加载自定义过滤器

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
